#include <iostream>

using namespace std;

int main(int argc, char* argv[], char* env[])
{
    // 命令行参数
    for (int i = 0; i < argc; i++)
    {
      printf("argv[%d]: %s\n", i, argv[i]);
    }

    printf("-----------------------------\n");

    // 环境变量
    for (int i = 0; env[i]; i++)
    {
      printf("env[%d]: %s\n", i, env[i]);
    }
    
    cout << "I am a C++ process" << endl;
    cout << "I am a C++ process" << endl;
    cout << "I am a C++ process" << endl;
}
